<style>    
    #testFileInput2{
        height: 30px; width: 102px; margin-left: 128px;
    }
    #preview1, #topPhpto
        {  
            width:150px;  
            padding-left: 65px;padding-top: 15px; border-top-width: 5px;
            //height:150px;  
        }
</style>
<div class="pageContent">	
    <form method="post" action="__CONTROLLER__/edit?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden"  id='hidden'  name='id' value="<{$vo.id}>"/>
        <input type="hidden" name="file" value="<{$vo.file}>" id="file"/>
        <input type="hidden" name='assign_user_id' value="<{$Think.session.authId}>"/>
        <input type="hidden" name="image" value="<{$vo.image}>" id="image"/>
        <div class="pageFormContent" layoutH="58">
            <eq name="_sign" value="1">
                <div class="unit">
                    <label>资料名称：</label>
                    <input type="text" name="title" size="40"  value="<{$vo.title}>" class='required' />
                </div>
                <div class="unit">
                    <label>英文资料名称：</label>
                    <input type="text" name="en_title" size="40"  value="<{$vo.en_title}>" class='required' />
                </div>
                <div class="unit">                
                    <label>资料：</label>  
                    <input id="testFileInput2" type="file" name="images"                                        
                        uploaderOption="{
                            swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
                            uploader:'__MODULE__/Common/upImg',
                            formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:6},
                            buttonText:'请选择文件',
                            fileSizeLimit:'100000KB',
                            fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;*.doc;*.docx;*.xls;*.xlsx;*.ppt;*.pptx;*.txt;*.pdf;',
                            fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;*.doc;*.docx;*.xls;*.xlsx;*.ppt;*.pptx;*.txt;*.pdf;',
                            auto:true,
                            onUploadSuccess:function(file,data,respore){
                                $('#file').val(data);
                            }
                        }"
                    />
                </div>
                <div class="unit">
                    <label>模块：</label>
                    <select class="" name="t_id" style="width:220px;">
                        <option value='' selected="selected">本部门资料</option>
                        <foreach name="modList" item="modList">
                            <option value="<{$modList.id}>" <if condition="$modList['id'] eq $vo['t_id']">selected</if>><{$modList.name}></option>
                        </foreach>
                    </select>
                </div>
                <div class="unit">
                    <label>资料说明：</label>
                    <textarea name='desc_' cols="33" rows="3"><{$vo.desc_}></textarea>
                </div>
                <div class="unit">
                    <label>资料英文说明：</label>
                    <textarea name='en_desc_' cols="33" rows="3"><{$vo.en_desc_}></textarea>
                </div>
                <neq name="vo['id']" value=''>
                    <div class="unit">
                        <label style="width: 108px;">是否置顶：</label>
                        <label style="width: 38px;"><input type="radio" name="top" value="1" />是</label>
                        <label><input type="radio" name="top" value='0' checked/>否</label> 
                    </div>
                </neq>
            <else/>
                <input type="hidden" name="db" value="TrainMod"/>
                <div class="unit">
                    <label>模块名称：</label>
                    <input type="text" name="name" size="40"  value="<{$vo.name}>" class='required' />
                </div>
                <div class="unit">
                    <label>模块英文名称：</label>
                    <input type="text" name="en_name" size="40"  value="<{$vo.en_name}>" class='required' />
                </div>
                <div id="preview1" href="">
                    <img src="<{$Think.const.PUBLIC_URL}>Upload/<{$vo.image}>" id='topPhpto'/>               
                </div>
                <div class="unit">                
                    <label>LOGO：</label>  
                    <input id="testFileInput2" type="file" name="images"                                        
                    uploaderOption="{
			swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
			uploader:'__MODULE__/Common/upImg',
                        formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:7},
			buttonText:'请选择文件',
			fileSizeLimit:'20000KB',
			fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;',
			fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;',
			auto:true,
                        onUploadSuccess:function(file,data,respore){
                            $('#topPhpto').attr('src','<{$Think.const.PUBLIC_URL}>'+'Upload/'+data);
                            $('#image').val(data);
                        }
                    }"
                />
                </div>
                <div class="unit">
                    <label>模块描述：</label>
                    <textarea name='desc_' cols="33" rows="3"><{$vo.desc_}></textarea>
                </div>
                <div class="unit">
                    <label>模块英文描述：</label>
                    <textarea name='en_desc_' cols="33" rows="3"><{$vo.en_desc_}></textarea>
                </div>
            </eq>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>	
</div>
